﻿@model Fish.Models.EventInfo

@{
    ViewBag.Title = "Invite";
}

<h2>Invite</h2>

<hr />

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.HiddenFor(model => model.EventsID)

    <div class="form-horizontal">
        <div class="form-group">
            @Html.Label("Add emails separated by ';'")
            <div class="col-md-10">
                @Html.TextArea("emails", new { required = "required", pattern = "[^ @]*@[^ @]*" })
            </div>
        </div>
        <div >
            <div class="col-md-10">
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Invite" class="btn btn-default" />
            </div>
        </div>
    </div>

    <div class="form-group">
        <label>Or invite via Facebook:    </label>
        <div class="fb-send" data-href="http://developers.facebook.com/docs/plugins/" data-colorscheme="light"></div>
    </div>


}


<div id="fb-root"></div>
<script>
    (function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

<script>
    function incSize(event) {
        var size = event.value.length;
        event.setAttribute("size", size);
        event.setAttribute("style", "width:auto")
    }
</script>



